package com.qf.service.impl;

import com.qf.entity.Goods;
import com.qf.entity.User;
import com.qf.mapper.UserMapper;
import com.qf.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Service
public class UserServiceImpl implements IUserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public int addUser(User user) {
        int users = userMapper.insert(user);
        return users;
    }

    @Override
    public User LoginUsername(String username) {
        User user = userMapper.LoginUsername(username);
        return user;
    }

    @Override
    public User CheckPhone(String uPhone) {
        User user = userMapper.CheckPhone(uPhone);
        return user;
    }

}
